#!/bin/bash

#------------------------------------------------------------------------------
#Filename:	74816-less.sh
#Version:	1.1
#Date:	        2013/08/02
#Author:	yuanhui.shi
#Email:	        yuanhui.shi@cs2c.com.cn
#Summary:	02.01系统核心功能-06基础命令行工具-15less工具-03less打开文件并匹配查找关键字
#Notes:	        检验less命令用法
#Copyright:	China Standard Software Co.,Ltd.
#History:
#	        Version 1.0,2013/08/02
#	        -The first one
#	        Version 1.1,2013/09/09
#	        -Modify the script to satisfy the shell standard
#------------------------------------------------------------------------------


PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH

source ../../lib/Echo.sh


/usr/bin/expect << \EOF
spawn less /etc/passwd
expect "Enter word you find:"
send "/sbin\r"
expect "Enter word you find:"
send "n"
expect "Enter word you find:"
send "u"
expect eof
EOF

EchoInfo "74816-less.sh执行完毕"
